//
//  CAVerificationCodeButton.h
//  SCCAAuthSDK
//
//  Created by cyptt on 2020/3/24.
//  Copyright © 2020 com.scca. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CodeParams;
typedef void (^CAVerificationCodeBtnClick)(NSString * _Nullable vCode) ;
NS_ASSUME_NONNULL_BEGIN

@interface CAVerificationCodeButton : UIButton

@property(nonatomic,strong)CAVerificationCodeBtnClick  caVerificationCodeBtnClick;

@property(nonatomic,strong)CodeParams * codeParams;

-(void)setCodeParamsFunc:(CodeParams *)codeParams;

-(void)start;

-(void)finish;



@end



@interface CodeParams : NSObject
@property(nonatomic,assign)int code_time_count;   // 总共时间
@property(nonatomic,assign)BOOL isBorder ;   //是否有边框
@property(nonatomic,assign)BOOL corder ;  //是否圆角
@property(nonatomic,strong)NSString * startTitle;  //开始title
@property(nonatomic,strong)NSString * resetTitle;  //重新title

@property(nonatomic,strong)UIColor * defalutColor; //正常颜色
@property(nonatomic,strong)UIColor * resetColor;   //重置颜色
@property(nonatomic,strong)UIColor * timeColor;   //时间计时颜色

@property(nonatomic,assign)CGFloat  fontFloat;  //字体大小


@end



NS_ASSUME_NONNULL_END
